# Contributor: Sol Fisher Romanoff <sol@solfisher.com>
# Maintainer: Sol Fisher Romanoff <sol@solfisher.com>
pkgname=libsbsms
pkgver=2.3.0
pkgrel=0
pkgdesc="Library for time stretching and pitch scaling of audio"
url="https://github.com/claytonotey/libsbsms"
arch="all"
license="GPL-2.0-or-later"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/claytonotey/libsbsms/archive/refs/tags/$pkgver.tar.gz"

prepare() {
	default_prepare
	update_config_sub
	update_config_guess
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--enable-shared \
		--disable-sse
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
e5b544c2bdbaa2169236987c7a043838c8d1761b25280c476d7a32656d482c6485cb33f579ea9d1ce586ec7b2913ed8fdcf1abe5c7cc8b9e4eef9ce87de54627  libsbsms-2.3.0.tar.gz
"
